package com.entity;

import java.io.Serializable;
import java.util.Date;

public class Book implements Serializable {
	private Integer bookId;
	private String bookName;
	private String author;
	private String press;
	private Date update;
	private Double bookPrice;
	private Double dangPrice;
	private String bookImg;
	private Category category;
	private Category pCategory;
	private String describe;
	private Integer bookSale;
	private Integer categoryId;
	public Book() {
		super();
	}

	@Override
	public String toString() {
		return "Book{" +
				"bookId=" + bookId +
				", bookName='" + bookName + '\'' +
				", author='" + author + '\'' +
				", press='" + press + '\'' +
				", update=" + update +
				", bookPrice=" + bookPrice +
				", dangPrice=" + dangPrice +
				", bookImg='" + bookImg + '\'' +
				", category=" + category +
				", pCategory=" + pCategory +
				", describe='" + describe + '\'' +
				", bookSale=" + bookSale +
				", categoryId=" + categoryId +
				'}';
	}

	public Integer getBookId() {
		return bookId;
	}

	public void setBookId(Integer bookId) {
		this.bookId = bookId;
	}

	public String getBookName() {
		return bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getPress() {
		return press;
	}

	public void setPress(String press) {
		this.press = press;
	}

	public Date getUpdate() {
		return update;
	}

	public void setUpdate(Date update) {
		this.update = update;
	}

	public Double getBookPrice() {
		return bookPrice;
	}

	public void setBookPrice(Double bookPrice) {
		this.bookPrice = bookPrice;
	}

	public Double getDangPrice() {
		return dangPrice;
	}

	public void setDangPrice(Double dangPrice) {
		this.dangPrice = dangPrice;
	}

	public String getBookImg() {
		return bookImg;
	}

	public void setBookImg(String bookImg) {
		this.bookImg = bookImg;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public Category getpCategory() {
		return pCategory;
	}

	public void setpCategory(Category pCategory) {
		this.pCategory = pCategory;
	}

	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}

	public Integer getBookSale() {
		return bookSale;
	}

	public void setBookSale(Integer bookSale) {
		this.bookSale = bookSale;
	}

	public Integer getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public Book(Integer bookId, String bookName, String author, String press, Date update, Double bookPrice, Double dangPrice, String bookImg, Category category, Category pCategory, String describe, Integer bookSale, Integer categoryId) {
		this.bookId = bookId;
		this.bookName = bookName;
		this.author = author;
		this.press = press;
		this.update = update;
		this.bookPrice = bookPrice;
		this.dangPrice = dangPrice;
		this.bookImg = bookImg;
		this.category = category;
		this.pCategory = pCategory;
		this.describe = describe;
		this.bookSale = bookSale;
		this.categoryId = categoryId;
	}
}
